{% extends 'base.html' %}
{% block title %}
    <title>登录页面</title>
{% endblock %}
{% block content %}
    <div class="container" style="padding: 120px 0">
        <div class="row" style="background-color: #fd7a72;padding:50px">

            <div class="col-md-5 col-md-offset-1 pull-left" style="padding:18px 40px 0;">
                <div class="well well-lg">
                    <h3 class="" style="margin: auto;text-align: center">
                        <strong>欢迎登录云笔记</strong>

                    </h3>
                    <div style="height: 70px;"></div>
                    <form class="form-horizontal" role="form" method="post" action="{% url 'login' %}">
                        {% csrf_token %}
                        <div class="form-group ">
                            <div class="input-group col-sm-offset-1 col-sm-10">
                                <span class="input-group-addon">用户</span>
                                <input type="text" class="form-control" placeholder="请输入用户名" name="username">
                            </div>

                        </div>
                        <div class="form-group ">
                            <div class="input-group col-sm-offset-1 col-sm-10">
                                <span class="input-group-addon">密码</span>
                                <input type="password" class="form-control" id="lastname"
                                       placeholder="请输入密码" name="pwd">
                            </div>

                        </div>

                        <div class="form-group">
                            <div class="col-sm-12">
                                <button type="submit" class="btn btn-primary btn-lg btn-block">登录</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="col-md-5 col-md-offset-1 pull-left" style="padding: 30px">
                {% load static %}
                <img class="img-responsive" src="{% static 'img/bg.png' %}" alt="">
            </div>
        </div>
    </div>

{% endblock %}